import React from "react";
import { Redirect } from "react-router";
import Home from "../app/home";
import Recommend from "../app/recommend";
import Rank from "../app/Rank";
import Singers from "../app/singers";
export default [
    {
        path: "/",
        component: Home,
        routes: [
            {
                path: "/",
                exact: true,
                render: ()=>(
                    <Redirect to={'/recommend'}/>
                )
            },
            {
                path: "/recommend",
                component: Recommend,
            },
            {
                path: "/singers",
                component: Singers
            },
            {
                path: "/rank",
                component: Rank
            }
        ]
    }
]